package algorithm.t202111;

import java.util.List;

/**
 * @author : 李红磊
 * @version :1.0
 * @date : 2021/11/15 17:26
 * @description :
 */
public class Node {
    int val;
    Node next;
    Node random;

    public List<Node> children;

    public Node(int _val, List<Node> _children) {
        val = _val;
        children = _children;
    }

    public Node(int val) {
        this.val = val;
        this.next = null;
        this.random = null;
    }

    @Override
    public String toString() {
        return "Node{" +
                "val=" + val +
                ", next=" + next +
                ", random=" + random +
                '}';
    }
}
